//
//  RootViewController.h
//  Feed Rider
//
//  Created by Adrian-Sergiu Nicuta on 17/09/11.
//  Copyright 2011 Adrisen Technologies SPRL. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <CoreData/CoreData.h>
#import <iAd/iAd.h>
#import "ImportSubscriptionsViewController.h"

@interface RootViewController : UITableViewController <NSFetchedResultsControllerDelegate, UIActionSheetDelegate, NSURLConnectionDelegate, NSURLConnectionDataDelegate, ImportSubscriptionsDelegate, ADBannerViewDelegate> {
@private
    BOOL isRequestAuthActive;
    BOOL isRequestSubscriptionsActive;
}

@property (nonatomic, retain) NSFetchedResultsController *fetchedResultsController;
@property (nonatomic, retain) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain) NSURLConnection *importFeedsConnection;
@property (nonatomic, retain) NSMutableData *subscriptionsData;
@property (retain, nonatomic) IBOutlet ADBannerView *adBannerView;
@property (nonatomic, retain) NSMutableDictionary *feedsConnections;

- (void)loadAllFeeds;
- (void)deleteOldItems;

@end
